<?php
include_once "xAP-functions/webincludes.php";

echo webpageheader("");
?>
<style>
.sidebarcolumn { width:15%; vertical-align: top;padding-left: 0;}
.maincolumn { width:85%; vertical-align: top;}
.date { color: #999999;font-size: 10;}
ul.sidebar { list-style-type: disc;padding-left: 5;}
</style>
<table class='columnwrapper'><TR>
<td class='sidebarcolumn treeview'><ul id='tree'></ul><div id='column1' ></div></td>
<td class='maincolumn'><div id='column2' ></div></td>
</tr>
</table>

<script>
var mainurl;
$(document).ready(function(){
	//$('#column1').load("sidebar.php");
	$("#tree").treeview({
			animated: "medium",
			url: "tree.php"
		});

	mainurl="news.php?id=<?=intval($_GET["id"])?>";
	GetNow();
});

function NewsLoad(id){
	mainurl="news.php?id=" + id;
	GetNow();
}
function Tag(id){
	mainurl="news.php?tag=" + id;
	GetNow();
}
function Category(id){
	mainurl="news.php?cat=" + id;
	GetNow();
}
function GetNow(){
	$('#column2').load(mainurl);
}

setInterval("GetNow()",60000);
</script>


<?php
echo webpagefooter();
?>